//
// Created by 崔世强 on 2018/3/8.
// Copyright (c) 2018 Facebook. All rights reserved.
//

import Foundation
import UIKit

extension UIView {
    func bind <T> (_ property:PropertyObservable<T>?, handler: @escaping ((T?) -> Void)) {
        property?.bindObserver(observer: self, closure: handler)
    }
}
